/*
 * @Author: zhang gen yuan
 * @Date: 2021-09-17 15:48:35
 * @Descripttion: 
 */
export const formColumn = [
    {
        label: '任务名称',
        prop: 'title',
        type: 'input'
    },
    {
        label: '任务优先级',
        prop: 'taskLevel',
        type: 'select',
        options: [
            {
                label: '低',
                value: 1
            },
            {
                label: '中',
                value: 2
            },
            {
                label: '高',
                value: 3
            },
        ]
    },
    {
        label: '所属项目',
        prop: 'projectId',
        type: 'select'
    },
    {
        label: '预期开始时间',
        prop: 'predictStart',
        type: 'time'
    },
    {
        label: '预期结束时间',
        prop: 'predictEnd',
        type: 'time'
    },
    {
        label: '负责人',
        prop: 'userNames',
        type: 'select'
    },
    {
        label: '状态',
        prop: 'status',
        type: 'select',
        options: [
            {
                label: '规划中',
                value: '0'
            },
            {
                label: '实现中',
                value: '1'
            },
            {
                label: '已实现',
                value: '2'
            },
            {
                label: '拒绝',
                value: '3'
            },
        ]
    },
    {
        label: '详情说明',
        prop: 'info',
        type: 'textarea'
    },
]

export const rules = {
    // id: [{ required: true, message: "请输入", trigger: "blur" }],
    title: [{ required: true, message: "请输入任务名", trigger: "blur" }],
    info: [{ required: true, message: "请输入详情说明", trigger: "blur" }],
    projectId: [{ required: true, message: "请选择所属项目", trigger: "blur" }],
    // parentId: [{ required: true, message: "请输入父级ID", trigger: "blur" }],
    taskLevel: [{ required: true, message: "请选择任务优先级", trigger: "blur" }],
    // startTime: [{ required: true, message: "请输入实际开始时间", trigger: "blur" }],
    // endTime: [{ required: true, message: "请输入实际结束时间", trigger: "blur" }],
    // predictStart: [{ required: true, message: "请选择预期开始时间", trigger: "blur" }],
    // predictEnd: [{ required: true, message: "请选择预期结束时间", trigger: "blur" }],
    userNames: [{ required: true, message: "请选择负责人姓名逗号隔开", trigger: "blur" }],
    status: [{ required: true, message: "请选择状态", trigger: "blur" }],
}